home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14278 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.5 KB  |  45 lines

  1. Newsgroups: comp.lang.c++
  2. Path: in1.uu.net!world!mv!usenet
  3. From: ENGR@GSSI.MV.COM (Michael Furman)
  4. Subject: Re: Leap year
  5. Message-ID: <Dp1LD9.Mt@mv.mv.com>
  6. Mime-Version: 1.0
  7. Content-Type: Text/Plain; charset=US-ASCII
  8. Organization: GSSI
  9. Date: Fri, 29 Mar 1996 18:43:56 GMT
  10. References: <3135A7F2.2120@hiwaay.net> <4hbiln$899@sam.inforamp.net> <4hesba$ph@clarknet.clark.net> <3146D0D8.16BA@msn.com> <315b3f2b.912029@NEWS.CLOUD9.NET>
  11. X-Newsreader: WinVN 0.99.7
  12. X-Nntp-Posting-Host: gssi.mv.com
  13.  
  14. In article <315b3f2b.912029@NEWS.CLOUD9.NET>, jalvo@cloud9.net says...
  15. >
  16. >"Poul A. Costinsky" <PoulACost@msn.com> wrote:
  17. >
  18. >>return (!(y % 4) && (y % 100));
  19. >>
  20. >That will work until 2100 and then err,
  21. >john alvord
  22.  
  23. Please, do not post what you do not know about: lots of people are listening
  24. here. It will be wrong for 2000. Correct one is:
  25.  
  26. return (!(y % 4) && (!(y % 400) || (y % 100)));
  27.  
  28. You can lool at: http://www.ft.uni-erlangen.de/~mskuhn/iso-time.html
  29. It contains a Summary of the International Standard Date and
  30. Time Notation including the definition of the leap year.
  31.  
  32.  
  33.  
  34. >
  35.  
  36. -- 
  37. <<< If you received it by E-mail: it is a copy of post to the newsgroup >>>
  38. ---------------------------------------------------------------
  39. Michael Furman,                       (603)893-1109
  40. Geophysical Survey Systems, Inc.  fax:(603)889-3984
  41. 13 Klein Drive - P.O. Box 97          engr@gssi.mv.com 
  42. North Salem, NH 03073-0097            71543.1334@compuserve.com
  43. ---------------------------------------------------------------
  44.  
  45.